package entities;

import java.util.Date;

import javax.jdo.annotations.Index;
import javax.persistence.Id;

import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.NotSaved;
import com.googlecode.objectify.annotation.Unindexed;

public class Link {
	@Id 
	private String id;
	
	@Unindexed 
	private String name = "";
	
	@Unindexed
	private String alias = "";
	
	@Unindexed 
	private String description = "";
	
	@Unindexed 
	private String url = "";
	
	@Indexed 
	private String creator = "";
	
	@Indexed 
	private String category = "";
	
	@NotSaved 
	private String lastCategory = "";
	
	@Unindexed 
	private String type = "free"; //free, reciprocal, featured
	
	@Unindexed 
	private String urlReciprocal = "";
	
	@Unindexed 
	private String sourceReciprocal = "";
	
	@Indexed 
	private long created = new Date().getTime();
	
	@Indexed 
	private int status = 2; //0-Inactive, 1-Pending, 2-Active
	
	@Unindexed 
	private String authKey = "";
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getLastCategory() {
		return lastCategory;
	}

	public void setLastCategory(String lastCategory) {
		this.lastCategory = lastCategory;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrlReciprocal() {
		return urlReciprocal;
	}

	public void setUrlReciprocal(String urlReciprocal) {
		this.urlReciprocal = urlReciprocal;
	}

	public String getSourceReciprocal() {
		return sourceReciprocal;
	}

	public void setSourceReciprocal(String sourceReciprocal) {
		this.sourceReciprocal = sourceReciprocal;
	}

	public long getCreated() {
		return created;
	}

	public void setCreated(long created) {
		this.created = created;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getAuthKey() {
		return authKey;
	}

	public void setAuthKey(String authKey) {
		this.authKey = authKey;
	}

}
